 #define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
	vector<string> buildArray(vector<int>& target, int n) {
		vector<string> vret;
		int index = 0;
		int data = 1;
		while (index < target.size())
		{
			vret.push_back("Push");
			if (data != target[index])
				vret.push_back("Pop");
			else
				index++;
			data++;
		}
		return vret;
	}
};